package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * 插入菜品口味
     * @param flavors
     */
    void insert(List<DishFlavor> flavors);

    /**
     * 删除菜品表对应的口味
     * @param ids
     */
    void delete(Long[] ids);

    /**
     * 根据菜品id查询对应口味
     * @param id
     * @return
     */
    List<DishFlavor> select(Long id);


}
